package jman.competition06;

public class Contestants extends Competition{
	private String contestantName;
	public String getName() {
		return contestantName;
	}

	public void setName(String contestantName) {
		this.contestantName = contestantName;
	}
	public void celebrate(String a){
		System.out.println("大家一起"+a+"庆祝");
	}
	public void contestan(Contestants a){
		System.out.println(a.contestantName+"参加"+a.getType()+"比赛");
	}
}
